<%@ page import="com.demo.main.utils.Result" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh-CN">
<head>
    <title>注册</title>
    <link rel="stylesheet" href="/resources/css/bootstrap.min.css">
    <link rel="stylesheet" href="/resources/css/index.css">
    <style>
        .container-fluid.login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        .login-box {
            background-color: #fff;
            width: 400px;
            padding: 20px;
        }

        .login-box-title {
            text-align: center;
            margin-bottom: 20px;
        }

        .login-box-form {
            margin-top: 20px;
        }

        .form-group.row {
            margin-bottom: 15px;
        }

        .form-group.row label {
            text-align: right;
            padding-right: 10px;
        }

        .form-control {
            width: 100%;
            padding: 10px;
        }

        .btn-primary {
            background-color: #555;
            color: #fff;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
        }


    </style>
</head>
<body>

<div class="container-fluid login-container">
    <div class="login-box">
        <h3 class="login-box-title">图书管理系统</h3>
        <form action="/login" method="get" class="clearfix overflow-hidden">
            <input type="hidden" name="method" value="register">
            <div class="login-box-form">
                <div class="form-group row">
                    <label class="col-3">用户名</label>
                    <input type="text" class="form-control col-8" name="username">
                </div>
                <div class="form-group row">
                    <label class="col-3">密码</label>
                    <input type="password" class="form-control col-8" name="password">
                </div>
                <div class="form-group row">
                    <label class="col-3">手机号</label>
                    <input type="text" class="form-control col-8" name="phone">
                </div>
                <button type="submit" class="btn btn-primary" style="margin-top: 20px">注册</button>
                <a href="login.jsp" class="btn btn-primary" style="margin-top: 20px;margin-left: 160px">返回登录</a>
            </div>
        </form>
    </div>
</div>
</body>
</html>
